{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin ietf_filters static %}
{% block title %}Sessions linked to {{ doc.name }}{% endblock %}
{% block pagehead %}
    <link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        Sessions linked to
        <br>
        <small class="text-body-secondary">{{ doc.name }}</small>
    </h1>
    {% if user|has_role:"Secretariat,Area Director,WG Chair,WG Secretary,RG Chair,RG Secretary,IRTF Chair,Team Chair" %}
        <div class="buttonlist">
            <a class="btn btn-primary"
               id="addsessionsbutton"
               href="{% url 'ietf.doc.views_doc.add_sessionpresentation' name=doc.name %}">
                Link to more sessions
            </a>
        </div>
    {% endif %}
    {% if in_progress %}
        <div id="inprogressmeets">
            <h2 class="mt-3">Meetings in progress</h2>
            {% with sessions=in_progress %}
                {% include "doc/material/presentations-row.html" %}
            {% endwith %}
        </div>
    {% endif %}
    {% if future %}
        <div id="futuremeets">
            <h2 class="mt-3">Future meetings</h2>
            {% with sessions=future %}
                {% include "doc/material/presentations-row.html" %}
            {% endwith %}
        </div>
    {% endif %}
    {% if past %}
        <div id="pastmeets">
            <h2 class="mt-3">Past meetings</h2>
            {% with sessions=past %}
                {% include "doc/material/presentations-row.html" %}
            {% endwith %}
        </div>
    {% endif %}
{% endblock %}
{% block js %}
    <script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}